import {createApp} from 'vue'
import {createRouter} from './router/index'
import App from './app.vue'
import a2 from './app2.vue'
import a3 from './app3.vue'
export const router = createRouter({
  routers: [
    { path: '/home', redirect: '/' },
    {
      path: '/app2',
      component:a2,
    },
    { path: '/app3', component: a3, props: true }
  ]
})
const ap = createApp(App);
ap.use(router);
ap.mount('#app')
console.log(ap)

